package com.fzy.core.tags;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.opensymphony.webwork.components.UIBean;
import com.opensymphony.xwork.util.OgnlValueStack;

public class SelectQuery extends UIBean {

    /**
     * The name of the default template for the TextFieldTag
     */
    final public static String TEMPLATE = "selectquery";


    protected String action;

    public SelectQuery(OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response) {
        super(stack, request, response);
    }

    protected String getDefaultTemplate() {
        return TEMPLATE;
    }

    protected void evaluateExtraParams() {
        super.evaluateExtraParams();

        if (action != null) {
            addParameter("action", findString(action));
        }

    }

	public void setAction(String action) {
		this.action = action;
	}

}
